import request from '@/utils/request'
// 登录接口
export const loginApi = (data) => {
  return request({
    method: 'post',
    url: '/admin/index/login',
    data
  })
}
// 获取用户资料
export const userProfileApi = () => {
  return request({
    method: 'post',
    url: '/admin/index/profile'
  })
}
